#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Core;
using Cephei.Core.Generic;
using Microsoft.FSharp.Core;
using Cephei.QL;
namespace Cephei.QL.Experimental.Credit
{
    /// <summary> 
	/// @class DefaultEvent
	/// @brief Credit event on a bond of a certain seniority(ies)/currency  Represents a credit event affecting all bonds with a given \ seniority and currency. It assumes that all such bonds suffer \ the event simultaneously. Some events affect all seniorities and this has to be encoded through a different set of events of the same event type. The event is an actual realization, not a contractual reference, as such it contains only an atomic type.
	/// </summary>
    [Guid ("385863CA-4D32-4f28-8B54-6303661B6775"),ComVisible(true)]
	public interface IDefaultEvent : Cephei.QL.IEvent
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        /// <summary> 
		/// 
		/// </summary>
		 Cephei.QL.ICurrency Currency {get;}
        /// <summary> 
		/// 
		/// </summary>
		 DateTime Date {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Cephei.QL.Experimental.Credit.IDefaultType DefaultType {get;}
        /// <summary> 
		/// 
		/// </summary>
		 QL.Experimental.Credit.SeniorityEnum EventSeniority {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Boolean HasSettled {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Boolean IsDefault {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Boolean IsRestructuring {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Boolean MatchesDefaultKey(Cephei.QL.Experimental.Credit.IDefaultProbKey contractKey);
        /// <summary> 
		/// 
		/// </summary>
		 Boolean MatchesEventType(Cephei.QL.Experimental.Credit.IDefaultType contractEvType);
        /// <summary> 
		/// 
		/// </summary>
		 Double RecoveryRate(QL.Experimental.Credit.SeniorityEnum seniority);
    }   

    /// <summary> 
	/// @class DefaultEvent
	/// @brief Credit event on a bond of a certain seniority(ies)/currency  Represents a credit event affecting all bonds with a given \ seniority and currency. It assumes that all such bonds suffer \ the event simultaneously. Some events affect all seniorities and this has to be encoded through a different set of events of the same event type. The event is an actual realization, not a contractual reference, as such it contains only an atomic type. Factory
	/// </summary>
   	[ComVisible(true)]
    public interface IDefaultEvent_Factory : INativeCollection_Factory<IDefaultEvent>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        /// <summary>
        /// Create a hybrid Vector of IDefaultEvent, with event notification of changes
        /// </summary>
        /// <returns>a new Vector&ltIDefaultEvent&gt</returns>
        IVector<IDefaultEvent> CreateVector();
        /// <summary>
        /// Create a hybrid Vector of ICell of IDefaultEvent, with event notification of changes
        /// </summary>
        /// <returns>a new ICell&ltIVector&ltI&ltIDefaultEvent&gt&gt&gt</returns>
        ICoCell<IVector<ICoCell<IDefaultEvent>>> CreateCellVector();
        IVector<IDefaultEvent> CreateVector (IEnumerable<IDefaultEvent> source);
        ICoCell<IVector<ICoCell<IDefaultEvent>>> CreateCellVector (IEnumerable<ICoCell<IDefaultEvent>> source);
    }
}

